package com.xinke.module.system.model.vo.oauth2;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.xinke.component.common.pojo.PageParam;

@Schema(description = "管理后台 - OAuth2 客户端分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OAuth2ClientPageReqVO extends PageParam {

    @Schema(description = "客户端编号")
    private String clientNo;

    @Schema(description = "客户端密钥")
    private String clientSecret;

    @Schema(description = "应用名", example = "芋艿")
    private String clientName;

    @Schema(description = "应用图标")
    private String clientLogo;

    @Schema(description = "应用描述")
    private String clientDesc;

    @Schema(description = "状态", example = "1")
    private Integer clientStatus;

    @Schema(description = "访问令牌的有效期")
    private Integer accessTokenValiditySeconds;

    @Schema(description = "刷新令牌的有效期")
    private Integer refreshTokenValiditySeconds;

    @Schema(description = "可重定向的 URI 地址")
    private String redirectUri;

    @Schema(description = "授权类型")
    private String authorizedGrantTypes;

    @Schema(description = "授权范围")
    private String authScope;

    @Schema(description = "自动通过的授权范围")
    private String autoApproveScopes;

    @Schema(description = "权限")
    private String authorities;

    @Schema(description = "资源")
    private String resourceIds;

    @Schema(description = "附加信息")
    private String additionalInformation;

}